import request from '@/utils/request'

export function List(data){
  return request({
    url: '/system/index/list',
    method: 'get',
    query:data
  })
}

export function adminList(data){
  return request({
    url: '/system/index/selfList',
    method: 'get',
    query:data
  })
}

export function activityThree(){
  return request({
    url: '/activity/training/getTopThree',
    method: 'get'
  })
}
//收藏
export function collectionInfo(data){
  return request({
    url:'/system/index/info',
    method:'post',
    data:data
  })
}

export function collectionNoInfo(data){
  return request({
    url:'/system/index/noInfo',
    method:'post',
    data:data
  })
}
export function getCollectionList(){
  return request({
    url:'/system/index/getCollectionList',
    method:'get'
  })
}

export function getNoCollectionById(id){
  return request({
    url:'/collection/collection/'+id,
    method:'get'
  })
}

export function getCollectionById(id){
  return request({
    url:'/system/index/'+id,
    method:'get'
  })
}

export function getMessage(phone){
  return request({
    url:'/message/sendMessage/'+phone,
    method:'get'
  })
}

export function registerActivity(data){
  return request({
    url:'/activity/training/register',
    method:'post',
    data: data
  })
}


